//
//  XUTextAttachment.m
//  新浪微博
//
//  Created by xuwenxin on 15/4/21.
//  Copyright (c) 2015年 xuwenxin. All rights reserved.
//

#import "XUTextAttachment.h"

@implementation XUTextAttachment


//I want my emoticon has the same size with line's height
- (CGRect)attachmentBoundsForTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex
{
    return CGRectMake(0,-5,lineFrag.size.height+3,lineFrag.size.height+3);
}

@end
